class main_menu :
    def __init__ ( self , mediator ) :
        self . _mediator = mediator
    def show_main_menu ( self ) :
        self . _mediator . configure_title_text_for_menu ( self . _mediator . localization_main_menu_title ( ) )
        self . _mediator . configure_next_row_for_menu \
            ( self . _mediator . localization_main_menu_create ( )
            , self . _mediator . on_main_menu_create
            )
        self . _mediator . configure_next_row_for_menu \
            ( self . _mediator . localization_main_menu_open ( )
            , self . _mediator . on_main_menu_open
            )
        self . _mediator . configure_next_row_for_menu \
            ( self . _mediator . localization_main_menu_rename ( )
            , self . _mediator . on_main_menu_rename
            )
        self . _mediator . configure_next_row_for_menu \
            ( self . _mediator . localization_main_menu_copy ( )
            , self . _mediator . on_main_menu_copy
            )
        self . _mediator . configure_next_row_for_menu \
            ( self . _mediator . localization_main_menu_quit ( )
            , self . _mediator . on_main_menu_quit
            )
        self . _mediator . show_menu ( )
    def hide_main_menu ( self ) :
        self . _mediator . hide_menu ( )
